<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>分数详情</title>
  <link href="/layui/css/layui.css" rel="stylesheet">
</head>
<body>
<div class="layui-form" id="scoreHtml">

  
</div>

<script src="/layui/layui.js"></script>
<script src="/js/jquery-3.3.1.min.js"></script>
<script src="/encrypt/crypto-js.min.js"></script>
<script src="/encrypt/encrypt-key.js"></script>

<script type="text/javascript">
  let stuId = localStorage.getItem("stuId")
  $.post("/ltj/getScoreInfoByStuId?stuId="+stuId,function (res) {
    let resData = JSON.parse(decryptData(res.data))
    console.log(resData)
    let scoreHtml = ""
    for (let i = 0; i < resData.length; i++) {
      scoreHtml += '<div class="layui-form-item">'
      scoreHtml += '<div class="layui-input-group">'
      scoreHtml += '<div class="layui-input-split layui-input-prefix">'
      scoreHtml += ''+resData[i].scoreType+''
      scoreHtml += '</div>'
      scoreHtml += '<input type="text" readOnly value="'+Number(resData[i].score)+'" disabled class="layui-input">'
      scoreHtml += '</div>'
      scoreHtml += '</div>'
    }
    scoreHtml += '<hr style="margin: 32px 0;">'
    scoreHtml += '<div class="layui-form-item">'
    scoreHtml += '<div class="layui-input-group">'
    scoreHtml += '<div class="layui-input-split layui-input-prefix">'
    scoreHtml += '综合得分'
    scoreHtml += '</div>'
    scoreHtml += '<input type="text" readOnly value="90" disabled class="layui-input">'
    scoreHtml += '</div>'
    scoreHtml += '</div>'
    $("#scoreHtml").html(scoreHtml)
  })
</script>

</body>
</html>